package com.onegene.pdf.component.report.colon;

import com.itextpdf.layout.element.Cell;
import com.itextpdf.layout.element.Paragraph;

/**
 * @author: laoliangliang
 * @description:
 * @create: 2020/7/27 11:58
 **/
public class ColonComponent {
    public static Paragraph getNormalParagraph(String text) {
        return new Paragraph(text).addStyle(ColonStyle.getNormalParagraph());
    }
    public static Paragraph getResultParagraph(String text) {
        return new Paragraph(text).addStyle(ColonStyle.getResultParagraph());
    }

    public static Cell getHeaderCell() {
        return new Cell().addStyle(ColonStyle.getHeaderCellStyle());
    }

    public static Cell getDefaultThemeCell() {
        return new Cell().addStyle(ColonStyle.getDefaultThemeCellStyle());
    }

    public static Cell getDefaultThemeCell(int row,int col) {
        return new Cell(row, col).addStyle(ColonStyle.getDefaultThemeCellStyle());
    }
}
